<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: C:/code/SkyGameEngine2d/src/render/IDirectRender.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">1.0.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e488ee1cea97fb16abdb5ccc78d2123b.html">render</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">IDirectRender.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef D3dInterface_h__</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define D3dInterface_h__</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor">#include &lt;d3d11.h&gt;</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;d2d1.h&gt;</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;dxgi1_2.h&gt;</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;</div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span>SkyEngine2d</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;{</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;    </div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    <span class="keyword">class </span>Vector2;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    </div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_sky_engine2d_1_1_i_direct_render.html">   16</a></span>&#160;    <span class="keyword">class </span><a class="code" href="class_sky_engine2d_1_1_i_direct_render.html">IDirectRender</a></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;    {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;    </div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        <span class="keyword">virtual</span> ID3D11Device* <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#a71f25ea0bdd04960ce15e1e3d99542aa">getD3dDevice</a>() = 0;</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;    </div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;        <span class="keyword">virtual</span> ID3D11DeviceContext* <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#a238917a8900e116548a8d7748dfa57e4">getD3dDeviceContext</a>() = 0;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;    </div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        <span class="keyword">virtual</span> ID3D11RenderTargetView* <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#a8607e9e98ee747245e376415c4579bec">getD3dRenderTargetView</a>() = 0;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        </div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        <span class="keyword">virtual</span> IDXGISwapChain1* <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#ad9fd2043a7a09a78fcc7107d13991700">getD3dSwapChain</a>() = 0;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        </div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <span class="keyword">virtual</span> ID3D11DepthStencilView* <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#a07077a26fe5c44e84f772be64aa9b32a">getD3dDepthStencilView</a>() = 0;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        </div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#ab1e0364f629228100cd373d6502245ba">ClearDirect3D</a>() = 0;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;        </div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#a186eaa39b2fccb9c0ac0cec4d9d228bd">onResize</a>(HWND hwnd, UINT w, UINT h) = 0;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;    </div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keyword">virtual</span> ID2D1RenderTarget* <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#af443c91ea44bcc623a9de2a24770da83">getD2dRenderTarget</a>() = 0;</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;        </div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="class_sky_engine2d_1_1_i_direct_render.html#acca444d413763e3c8b5e61d69dcc6c29">getDpi</a>() = 0;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    };</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    </div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;}</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="preprocessor">#endif // D3dInterfface_h__</span></div><div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_a238917a8900e116548a8d7748dfa57e4"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#a238917a8900e116548a8d7748dfa57e4">SkyEngine2d::IDirectRender::getD3dDeviceContext</a></div><div class="ttdeci">virtual ID3D11DeviceContext * getD3dDeviceContext()=0</div><div class="ttdoc">获取d3d 设备上下文</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_acca444d413763e3c8b5e61d69dcc6c29"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#acca444d413763e3c8b5e61d69dcc6c29">SkyEngine2d::IDirectRender::getDpi</a></div><div class="ttdeci">virtual float getDpi()=0</div><div class="ttdoc">获取dpi 值</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_a186eaa39b2fccb9c0ac0cec4d9d228bd"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#a186eaa39b2fccb9c0ac0cec4d9d228bd">SkyEngine2d::IDirectRender::onResize</a></div><div class="ttdeci">virtual void onResize(HWND hwnd, UINT w, UINT h)=0</div><div class="ttdoc">重置视图大小</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_ab1e0364f629228100cd373d6502245ba"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#ab1e0364f629228100cd373d6502245ba">SkyEngine2d::IDirectRender::ClearDirect3D</a></div><div class="ttdeci">virtual void ClearDirect3D()=0</div><div class="ttdoc">清理d3d</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_a07077a26fe5c44e84f772be64aa9b32a"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#a07077a26fe5c44e84f772be64aa9b32a">SkyEngine2d::IDirectRender::getD3dDepthStencilView</a></div><div class="ttdeci">virtual ID3D11DepthStencilView * getD3dDepthStencilView()=0</div><div class="ttdoc">获取深度缓存视图</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html">SkyEngine2d::IDirectRender</a></div><div class="ttdoc">Direct11 绘制相关的接口</div><div class="ttdef"><b>Definition:</b> IDirectRender.h:16</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_a8607e9e98ee747245e376415c4579bec"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#a8607e9e98ee747245e376415c4579bec">SkyEngine2d::IDirectRender::getD3dRenderTargetView</a></div><div class="ttdeci">virtual ID3D11RenderTargetView * getD3dRenderTargetView()=0</div><div class="ttdoc">获取d3d 渲染目标</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_ad9fd2043a7a09a78fcc7107d13991700"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#ad9fd2043a7a09a78fcc7107d13991700">SkyEngine2d::IDirectRender::getD3dSwapChain</a></div><div class="ttdeci">virtual IDXGISwapChain1 * getD3dSwapChain()=0</div><div class="ttdoc">获取d3d 交换链</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_af443c91ea44bcc623a9de2a24770da83"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#af443c91ea44bcc623a9de2a24770da83">SkyEngine2d::IDirectRender::getD2dRenderTarget</a></div><div class="ttdeci">virtual ID2D1RenderTarget * getD2dRenderTarget()=0</div><div class="ttdoc">获取d2d 渲染目标</div></div>
<div class="ttc" id="class_sky_engine2d_1_1_i_direct_render_html_a71f25ea0bdd04960ce15e1e3d99542aa"><div class="ttname"><a href="class_sky_engine2d_1_1_i_direct_render.html#a71f25ea0bdd04960ce15e1e3d99542aa">SkyEngine2d::IDirectRender::getD3dDevice</a></div><div class="ttdeci">virtual ID3D11Device * getD3dDevice()=0</div><div class="ttdoc">获取d3d 设备</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
